package b1.conifg.story
{
	public class FightConfig extends StepConfig
	{
		public var backgroundIndex:int;
		public var opponentAnimalId:int;
		public var obstacleIndex:int
		public var leftMessage:String;
		public var rightMessage:String;
		//如果战败，是否终止任务
		public var failTaskFlag:Boolean;
		//自定义信息
		public var userData:Object; 
		
		public function FightConfig(stepXML:XML)
		{
			super(stepXML);
			if (stepXML != null)
			{
				backgroundIndex = parseInt(stepXML.backgroundIndex);
				opponentAnimalId = parseInt(stepXML.opponentAnimalId);
				obstacleIndex = parseInt(stepXML.obstacleIndex);
				leftMessage = stepXML.leftMessage;
				rightMessage = stepXML.rightMessage;
				failTaskFlag = Boolean(parseInt(stepXML.failTaskFlag));
			}
		}
		
	}
}